package com.nalai.market.v1.controller;


import com.nalai.market.v1.model.Leveltwo;
import com.nalai.market.v1.service.ILeveltwoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author com.nalai
 * @since 2021-08-23
 */
@RestController
@RequestMapping("/v1/leveltwo")
public class LeveltwoController {
    @Autowired
    private ILeveltwoService iLeveltwoService;

    @GetMapping("/findLeveltwoList")
    public List<Leveltwo> findLeveltwoList(Integer leveloneId){
        return iLeveltwoService.findLeveltwoListByleveloneId(leveloneId);
    }
}
